#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
void print(int* p, int nub) {
	for (int i = 0; i < nub; i++) {
		printf("%d ", *(p + i));
	}
}
void reverse(int* p, int nub) {
	
	for (int i = 0; i < nub-1; i++,nub--) {
		p[i] ^= p[nub-1];
		p[nub - 1] ^= p[i];
		p[i] ^= p[nub - 1];
	}
}
int main() {
	int arr[11] = { 11,10,9,8,7,6,5,4,3,2,1 };
	int nub_arr = sizeof(arr) / sizeof(arr + 0);
	reverse(arr, nub_arr);
	print(arr, nub_arr);
	return 0;
}